﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Configuration;
using System.Data;
using KPIS.GERP.GHRMS.DAL;
using KPIS.GERP.GHRMS.MODEL;
using KPIS.GERP.GHRMS.IDAL;
using KPIS.GERP.GHRMS.IBLL;
using KPIS.GERP.GHRMS.DALFactory;

namespace KPIS.GERP.GHRMS.BLL
{
    public class EmployeeStatusBLL : IEmployeeStatusBLL
    {
        private static readonly IEmployeeStatusDAL dal = DataAccess.CreateEmployeeStatuses();

        public IList<EmployeeStatusInfo> LoadListEmployeeStatus()
        {
            return dal.LoadListEmployeeStatus(new EmployeeStatusInfo(0));
        }
        public IList<EmployeeStatusInfo> LoadListEmployeeStatus(string Sequence)
        {
            int seq = Sequence.Length > 0 ? Int32.Parse(Sequence) : 0;
            return dal.LoadListEmployeeStatus(new EmployeeStatusInfo(seq));
        }
        public IList<EmployeeStatusInfo> LoadListEmployeeStatusGroupByActive()
        {
            return dal.LoadListEmployeeStatusGroupByActive();
        }
    }
}
